var mongoose = require('./db')

var Schema = mongoose.Schema

//标签表
var userSchema = new mongoose.Schema({
    username:String, 
    password:{
      type:Number,
      default:123456
    },
    role:String,
});

//创建model,第三个参数是实际表名
var userModel = mongoose.model("user", userSchema,"user");

module.exports = userModel